import request from '@/utils/request'

export function getById(id){
  return request({
    url: `/websql/driverConfig/getById/${id}`,
    method: 'get'
  })
}

// 查询所有数据***列表
export function getDriverConfigList() {
  return request({
    url: '/websql/driverConfig/getDriverConfigList',
    method: 'get'
  })
}

// 查询***列表
export function listDriverConfig(query) {
  return request({
    url: '/websql/driverConfig/list',
    method: 'get',
    params: query
  })
}

// 查询***详细
export function getDriverConfig(dbCheckUrl) {
  return request({
    url: '/websql/driverConfig/' + dbCheckUrl,
    method: 'get'
  })
}

// 新增***
export function addDriverConfig(data) {
  return request({
    url: '/websql/driverConfig',
    method: 'post',
    data: data
  })
}

// 修改***
export function updateDriverConfig(data) {
  return request({
    url: '/websql/driverConfig',
    method: 'put',
    data: data
  })
}

// 删除***
export function delDriverConfig(dbCheckUrl) {
  return request({
    url: '/websql/driverConfig/' + dbCheckUrl,
    method: 'delete'
  })
}
